import http from './http'
export const zhuceApi = (username,password) => {
    return http({
        method: 'POST',
        url: 'http://localhost:12345/api/user/register',
        data: {
            username,
            password
        }
    })
}
export const dengluApi = (username,password) => {
    return http({
        method: 'POST',
        url: 'http://localhost:12345/api/user/login',
        data: {
            username,
            password
        }
    })
}
export const sousuoApi = (query) => {
    return http({
        method: 'GET',
        url: 'https://api-hmugo-web.itheima.net/api/public/v1/goods/qsearch',
        params: {
            query
        }
    })
}